{{#if isEditing}}
    <td class="center-text">{{comment.id}}</td>
    <td>
        <img src="{{comment.avatarUrl}}" alt="{{comment.avatarTitle}}"/>
    </td>
    <td>
        {{textarea rows="6"
                   class="form-control"
                   value=comment.text}}
    </td>
    <td>
        {{comment.ipAddr}}
        {{#if comment.city}}
            <br/><br/>
            <small>{{comment.city}}, {{comment.region}}<br/>{{comment.country}}</small>
        {{/if}}
    </td>
    <td>{{date-format comment.createdAt 'DD.MM.YYYY, HH:mm'}}</td>
    <td>
        <div class="pull-right">
            <a class="btn btn-success" {{action "save"}}>
                <i class="glyphicon glyphicon-ok"></i>
                <span>save</span>
            </a>
            <button class="btn btn-warning btn-confirm" {{action "reset"}}>
                <i class="glyphicon glyphicon-remove"></i>
                <span>reset</span>
            </button>
        </div>
    </td>
{{else}}
    <td class="center-text">{{comment.id}}</td>
    <td>
        <img src="{{comment.avatarUrl}}" width="80" height="80" alt="{{comment.avatarTitle}}"/>
    </td>
    <td>{{cut-string comment.text 120}}</td>
    <td>
        {{comment.ipAddr}}
        {{#if comment.city}}
            <br/><br/>
            {{#if comment.privateIP}}
                <small>Private IP</small>
            {{else}}
                <small>{{comment.city}}, {{comment.region}}<br/>{{comment.country}}</small>
            {{/if}}
        {{/if}}
    </td>
    <td class="text-right">{{date-format comment.createdAt 'DD.MM.YYYY, HH:mm'}}</td>
    <td>
        <div class="pull-right">
            <a class="btn btn-primary" href="#" {{action "edit"}}>
                <i class="glyphicon glyphicon-pencil"></i>
                <span>edit</span>
            </a>
            {{#unless comment.deleted}}
                <button class="btn btn-danger btn-confirm" {{action "remove"}}>
                    <i class="glyphicon glyphicon-trash"></i>
                    <span>delete</span>
                </button>
            {{else}}
                <button class="btn btn-default" disabled>
                    <i class="glyphicon glyphicon-trash"></i>
                    <span>delete</span>
                </button>
            {{/unless}}
        </div>
        <div class="pull-right">
            {{#link-to "reply-comment" comment.id class="btn btn-info"}}
                <i class="glyphicon glyphicon-envelope"></i>
                <span>reply</span>
            {{/link-to}}
        </div>
    </td>
{{/if}}
